package com.qf.commerce.mapper;

import com.qf.commerce.common.dto.UserDto;
import com.qf.commerce.common.dto.UserSelectDto;
import com.qf.commerce.common.vo.UserVo;
import com.qf.commerce.entity.User;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;


/*
 * @author 358
 * @since JDK 1.8
 * @data 2023/9/11 17:14
*/

public interface UserMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(User record);

    User selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(User record);

    List<UserVo> selectAll();

    UserVo select(UserSelectDto userSelectDto);

    int updateBalanceById(@Param("userId") Integer userId,@Param("balance") BigDecimal balance);
}